import { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'

export type ConstantRoutes = Array<RouteRecordRaw>

const constantRoutes: ConstantRoutes = [
    {
        path: "/",
        name: "Home",
        component: () => Layout,
        redirect: '/welcome',
        children: [
            {
                path: "welcome",
                component: () => import("@/views/welcome/index.vue"),
                name: "Welcome",
                meta: {
                    icon: "home",
                    title: "首页展示",
                    affix: true
                }
            }
        ]
    }
]

export default constantRoutes
